<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>XXX后台管理</title>
    <script src="/js/jquery-3.2.1.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/layui/lay/modules/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="layui/css/modules/layer/default/layer.css">
    <style>
        .page {
            background-image: url("/img/bc.jpg");
            position: absolute;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .middle {
            width: 100%;
            height: 70%;
            text-align: center;
            display: flex;
            align-items: center;
        }

        .middle > div {
            width: 30%;
            background-color: white;
            margin: 0 auto;
            padding: 20px 10px;
            border-radius: 10px;
            box-shadow: black 0px 0px 5px;
        }
    </style>
</head>
<body>
<div class="page">
    <#include "head.html">
    <div class="middle">
        <div>
            关于我们
        </div>
    </div>
    <#include "footer.html">
</div>
</body>
<script>
    $(".layui-nav>li:nth-child(4)").addClass("layui-this");
</script>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function () {
        var element = layui.element;
        //…
    });
</script>
<script>
    //Demo
    layui.use('form', function () {
        var form = layui.form;
        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
        form.verify({
            password: [
                /^[\S]{6,12}$/
                , '密码必须6到12位，且不能出现空格'
            ]
        });
        form.on('switch', function (data) {
            $(data.othis).siblings('input').remove();
            $(data.othis).after('<input type="hidden" name=' + $(data.elem).attr('name') + ' value=' + (data.elem.checked ? 'on' : 'off') + '>');
        });
    });
</script>
<script>
    // layer.alert("layui加载成功!");
</script>
</html>